// vite.config.ts
import { defineConfig } from "file:///C:/Users/zhangxuelin01/Desktop/test/music-home/node_modules/vite/dist/node/index.js";
import vue from "file:///C:/Users/zhangxuelin01/Desktop/test/music-home/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import { resolve } from "path";
var __vite_injected_original_dirname = "C:\\Users\\zhangxuelin01\\Desktop\\test\\music-home";
var vite_config_default = defineConfig({
  plugins: [vue()],
  //解决“vite use `--host` to expose”
  /*   base: './',
    server: {             
      host: '0.0.0.0',	
      // port: 8080,      
      open: true
    }, */
  server: {
    open: true,
    //启动项目自动弹出浏览器
    //port: 4000,//启动端口
    proxy: {
      "/api": {
        target: "http://localhost:8080",
        //实际请求地址
        changeOrigin: true,
        //代理时是否更改host
        rewrite: (path) => path.replace(/^\/api/, "")
      }
    }
  },
  resolve: {
    //别名配置，引用src路径下的东西可以通过@如：import Layout from '@/layout/index.vue'
    alias: [
      {
        find: "@",
        replacement: resolve(__vite_injected_original_dirname, "src")
      }
    ]
  }
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJDOlxcXFxVc2Vyc1xcXFx6aGFuZ3h1ZWxpbjAxXFxcXERlc2t0b3BcXFxcdGVzdFxcXFxtdXNpYy1ob21lXCI7Y29uc3QgX192aXRlX2luamVjdGVkX29yaWdpbmFsX2ZpbGVuYW1lID0gXCJDOlxcXFxVc2Vyc1xcXFx6aGFuZ3h1ZWxpbjAxXFxcXERlc2t0b3BcXFxcdGVzdFxcXFxtdXNpYy1ob21lXFxcXHZpdGUuY29uZmlnLnRzXCI7Y29uc3QgX192aXRlX2luamVjdGVkX29yaWdpbmFsX2ltcG9ydF9tZXRhX3VybCA9IFwiZmlsZTovLy9DOi9Vc2Vycy96aGFu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